﻿/// <reference path="jquery-1.4.4-vsdoc.js" />

String.empty = "";

String.format = function (val, param) {
    if (arguments.length > 1)
        for (var i = 1; i < arguments.length; i++)
            if (arguments[i] != null && arguments[i] != undefined)
                val = val.toString().replace("{" + (i - 1) + "}", arguments[i]);

    return val;
}

trigger = function (event) {
    $(this.event.srcElement).trigger(event);
}